package com.sondertara.joya.core.constant;

import com.sondertara.joya.core.cache.CacheHolder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author huangxiaohu
 */

@Data
@Accessors(chain = true)
public class JoyaConfig implements Serializable {



    private boolean columnUppercase;

    private int maxJoinTable = 10;

    private String[] packageToScan;

    private int batchSize = 2000;


    /**
     * clean cache by manual
     */
    public void cacheClean() {
        CacheHolder.clearAll();
    }


}
